package com.one.consumer.reserve.model.bean;

import com.one.common.view.multitytype.adapter.BaseItem;

/**
 * Created by Nico on 2019/3/31.
 */

public class YouhuiquanBean extends BaseItem{

    /**
     * sx_at : 2020-05-01 00:00:00
     * simple_info : 每笔订单金只能使用一种优惠券
     * coupon_id : 6a0c52c28b154dec9d77992f5b4bd9b2
     * money : 20
     * rule_value : 0
     * use_scene : 1
     * rule : 1
     * id : 31
     * rule_remark : 满0后使用
     * title : 现金抵用券
     * member_account : 18374250197
     * info : 无限制抵用券
     */

    private String sx_at;
    private String simple_info;
    private String coupon_id;
    private double money;
    /*使用规则》》》》判断计算满减用，满减阀值（满100减90）*/
    private int rule_value;
    /*使用场景》》》》1 维修 2 设计 3 装修 4 改造 5 加配*/
    private String use_scene;
    /* rule为 1 时为满减卷 2 时为打折率*/
    private int rule;
    private int id;
    /* 使用规则 文字说明*/
    private String rule_remark;
    private String title;
    private String member_account;
    private String info;

    public String getSx_at() {
        return sx_at;
    }

    public void setSx_at(String sx_at) {
        this.sx_at = sx_at;
    }

    public String getSimple_info() {
        return simple_info;
    }

    public void setSimple_info(String simple_info) {
        this.simple_info = simple_info;
    }

    public String getCoupon_id() {
        return coupon_id;
    }

    public void setCoupon_id(String coupon_id) {
        this.coupon_id = coupon_id;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getRule_value() {
        return rule_value;
    }

    public void setRule_value(int rule_value) {
        this.rule_value = rule_value;
    }

    public String getUse_scene() {
        String useScene = null;
        if(use_scene.equals("1"))
            useScene = "维修";
        else if(use_scene.equals("2"))
            useScene = "设计";
        else if(use_scene.equals("3"))
            useScene = "装修";
        else if(use_scene.equals("4"))
            useScene = "改造";
        else if(use_scene.equals("5"))
            useScene = "加配";
        return useScene;
    }

    public void setUse_scene(String use_scene) {
        this.use_scene = use_scene;
    }

    public int getRule() {
        return rule;
    }

    public void setRule(int rule) {
        this.rule = rule;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRule_remark() {
        return rule_remark;
    }

    public void setRule_remark(String rule_remark) {
        this.rule_remark = rule_remark;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMember_account() {
        return member_account;
    }

    public void setMember_account(String member_account) {
        this.member_account = member_account;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}
